package cn.itcast.provider.mapper;

import cn.itcast.provider.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author 虎哥
 */
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from tb_user where id = #{id}")
    User findById(@Param("id") Long id);
}
